# == Schema Information
#
# Table name: article_categories
#
#  id            :bigint           not null, primary key
#  cate_type     :integer
#  title         :string
#  created_at    :datetime         not null
#  updated_at    :datetime         not null
#  admin_user_id :integer
#  company_id    :integer
#
# Indexes
#
#  index_article_categories_on_admin_user_id  (admin_user_id)
#  index_article_categories_on_company_id     (company_id)
#
class ArticleCategory < ApplicationRecord
  belongs_to :admin_user
  belongs_to :company
  has_many :articles, dependent: :destroy

  enum cate_type: {c_normal: 1, c_home: 2}
end
